package com.imooc.controller;

import com.imooc.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by liu on 17-6-18.
 */
@RestController
@RequestMapping("/hello")
public class HelloContronller {

    @Autowired
    private GirlProperties girlProperties;


    //@RequestMapping(value = "/say",method = RequestMethod.GET)
    @GetMapping(value = "/say")
    public String say(@RequestParam(value = "id", required = false, defaultValue = "0") Integer myId){
        return "id: "+ myId;

        //return girlProperties.getCupSize();


    }
}
